#ifndef GUICONTAINERFORM_H
#define GUICONTAINERFORM_H

#include <QWidget>

class InquireSql;

namespace Ui {
class GuiContainerForm;
}

class HomePage;
class StockPage;
class CommodityInformation;
class MainWindow;
class QStackedWidget;
class NewCommodity;
//class AttributeSettings;
class Purchase;
class StockRemind;
class CommoditySale;
//class Supplier;
class AddModifySupplier;
class AddModifyCommodity;
class CategorySettings;
class MemberProfile;
class SetMemberLevel;
class HandleMemberCard;
class MemberCardRecharge;
class StaffResult;
class ModifyLoginPassword;
class SystemSettings;
class StaffManagement;
class MemberOperationDetails;
class SalesDetails;

class GuiContainerForm : public QWidget
{
    Q_OBJECT
    
public:
    explicit GuiContainerForm(QWidget *parent = 0);
    ~GuiContainerForm();

public:
    HomePage *m_homepage;

    QStackedWidget * m_StackedWidget;

public slots:
    void on_pushButtonStockPrompt_clicked();

private slots:
    void slotChangePage(QString str);

    void slotModifySystemInformationSuccess();

    void slotReturnHomePage();

    void on_pushButtonCurrentStock_clicked();

    void on_pushButtonCommoditySales_clicked();

    void on_pushButtonCommodityInformation_clicked();

    void on_pushButtonPurchase_clicked(); 

    void on_pushButtonMemberProfile_clicked();

    void on_pushButtonMemberLevel_clicked();

    void on_pushButtonMemberHandled_clicked();

    void on_pushButtonMemberChargeMoney_clicked();

    void on_pushButtonStaffResultsRanking_clicked();

    void on_pushButtonModifyPassword_clicked();

    void on_pushButtonSystemSettings_clicked();

    void on_pushButtonStaffManagement_clicked();

    void on_pushButtonMemberRechargeDetail_clicked();

    void on_pushButtonSalesDetail_clicked();

private:
    void eliminationPushButtonBorder();

    Ui::GuiContainerForm *ui;

    InquireSql *m_sql;

    StockPage * m_stockpage;

    CommodityInformation * m_commodityinformation;

//    NewCommodity *m_newcommodity;

//    AttributeSettings *m_attributesettings;

    Purchase *m_purchase;

    StockRemind *m_stockremind;

    CommoditySale *m_commoditysale;

//    Supplier *m_supplier;

    AddModifySupplier *m_addModifySupplier;

    AddModifyCommodity *m_addModifyCommodity;

    MemberProfile *m_memberProfile;

    SetMemberLevel *m_setMemberLevel;

    HandleMemberCard *m_handleMemberCard;

    MemberCardRecharge *m_memberCardRecharge;

    StaffResult *m_staffResult;

    ModifyLoginPassword *m_modifyLoginPassword;

    SystemSettings *m_systemSettings;

    StaffManagement *m_staffManagement;

//    CategorySettings *m_categorySettings;

    MemberOperationDetails *m_memberOperationDetails;

    SalesDetails *m_salesDetails;

    MainWindow *m_mainwindow;
};

#endif // GUICONTAINERFORM_H
